<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="div">
         <!-- 输入分数，如果分数为80以上显示A，60-80 显示B 60以下显示C -->
         <input type="text" placeholder="请输入分数" v-model="score"/>
         <p v-show="score>80">v-show:</p>
         <p v-if="score>=80">A</p>
         <p v-else-if="score>=60 && score<80">B</p>
         <p v-else-if="score<60 && score>=0">C</p>
         <p v-else>输入分数错误</p>
    </div>

    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <script>

        var app = Vue.createApp({
          
            data: function () {
                return {
                  score:0
                }
            },

        }).mount('#div');

    </script>
</body>

</html>